package com.woniu.account.client;


import com.woniu.account.client.dto.TUserCourseDto;
import com.woniu.core.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(value = "product-server",path = "/product")
public interface ProductServerClient {
    @GetMapping("/queryMyStudent.coach/{coachId}")
    @ApiOperation("教练根据coach_id查询自己的学员")
    public Result<List<TUserCourseDto>> queryMyStudent(@PathVariable("coachId")Integer coachId) throws Exception;
}
